<%!
  body_onLoad_script=''
%>\
<%
	req.init_session()
%>\
<!DOCTYPE html>
<html>
<head>
  <title>${self.page_title()}</title>
  ${self.head_meta_tags()}
  ${self.head_link_tags()}
  ${self.head_script_tags()}
</head>
<body onLoad="${self.attr.body_onLoad_script}">
	% if req.session and req.session.notice:
	<div class="notice">
		${req.session.pop('notice')}
	</div>
	% endif

	% if req.session and req.session.warning:
	<div class="warning">
		${req.session.pop('warning')}
	</div>
	% endif

	% if req.session and req.session.error:
	<div class="error">
		${req.session.pop('error')}
	</div>
	% endif

	${self.body()}
</body>
</html>
<%def name="page_title()"></%def>
<%def name="head_meta_tags()"></%def>
<%def name="head_link_tags()"></%def>
<%def name="head_script_tags()"></%def>
